package com.hmall.common.client;


import com.hmall.user.pojo.Adderss;
import com.hmall.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("userservice")
public interface FeignClientInter {
    @GetMapping("/address/{addressId}")
    Adderss getAddressById(@PathVariable("addressId") Long id);

    @GetMapping("/user/{id}")
    User findUserById(@PathVariable("id") Long id);


}
